class CoolScene extends egret.DisplayObjectContainer
{
	public constructor()
	{
		super();
		this.width = DataManager.getInstance().m_WindowsWidth;
		this.height = DataManager.getInstance().m_WindowsHeight;
	}
	protected createBitmapByName(name: string):egret.Bitmap
	{
		let result = new egret.Bitmap();
		let texture: egret.Texture = RES.getRes(name);
		result.texture = texture;
		return result;
	}
	protected createBtnByName(name: string, callback:Function,obj:egret.DisplayObjectContainer):CoolBtn
	{
		let texture = RES.getRes(name);//: egret.Texture
		let result = new CoolBtn(texture,callback,obj);
		return result;
	}
}